package com.reebake.ideal.permission.client;

import com.reebake.ideal.permission.entity.MenuDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface MenuClient {

    @GetMapping("query-access-code-by-user-id/{userId}")
    public List<String> queryAccessCodeByUserId(@PathVariable("userId") String userId);

    @GetMapping("query-menu-by-user-id/{userId}")
    public List<MenuDTO> queryMenuByUserId(@PathVariable("userId") String userId);

}
